import './admin_header.html';
import { Template } from 'meteor/templating';
import { Message } from '../../components/message/message.js'


Template.App_admin_header.onRendered(function(){
    $('.ui.sticky')
    .sticky({
      context: 'body'
    })
  ;
    $('.ui.dropdown.item')
    .dropdown()
  ;
});



Template.App_admin_header.events({
  "click .app-logout"(event, instance){
    Meteor.logout();
    FlowRouter.go('/');
    Message.sendSuccess("您已经成功安全退出！", '')
  }
});
